package pack0716.com;

import javax.sound.midi.Soundbank;

//演示泛型方法
public class Demo <T> {



    //泛型方法:作用是对数组元素进行对调
    public  void change(T[] ts){    //泛型方法
        for (int i = 0; i <ts.length /2 ; i++) {
            T temp=ts[i];
            ts[i]=ts[ts.length-1-i];
            ts[ts.length-1-i]=temp;


        }


//        System.out.println(ts.toString());
    }


}
